package com.itheima.servlet;

import javax.servlet.*;
import java.io.IOException;

/*
*
*   Servlet入门程序
*  1.如果没有javax.servlet.* 那么就要自己导入maven依赖
* 项目右键打开项目依赖
* */
public class StudentServlet implements Servlet {

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }


    /*
    * 所有的客户端请求都会经过这里
    * */
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("service方法执行了");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
